<%@ page import="java.sql.*,database.*"%>
<%
try
	{
              boolean result = new DBCon().isUsernameExist(
                    request.getParameter("username"));
			if (result)
				out.print("It's Exist");
			else 
				out.print("It's Available");
}
catch(Exception e)
{
    response.sendRedirect("../connectionFailed.jsp?"+e);
}
%>
<%%>